import React from 'react';
import {render} from 'react-dom';
import './assets/common.css';


class Hello extends React.Component {
  render(){
    let arr = [11,22,33];
    return <div>
      <p className="header">123</p>
      <p onClick={this.clickHandler}>345</p>
      <p style={{background:'blue'}}>798</p>

      <ul>
        {arr.map((item,index) =>{
          return <li key={index}>{item}+{index}</li>
        })}
      </ul>


    </div>

  }
  clickHandler(){
    console.log(Date.now())
  }
}


render(
  <Hello/>,
  document.getElementById('root')
);